<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改首页图片</title>
<link href="/res/css/style.css" rel="stylesheet" type="text/css" />
<link href="/res/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/jquery.js"></script>
<script type="text/javascript" src="/res/js/select-ui.min.js"></script>
<script type="text/javascript" src="/res/js/lib/formvalid/FormValid.js"></script>
<link href="/res/js/lib/layer/skin/layer.css" rel="stylesheet" type="text/css" />
<link href="/res/js/lib/layer/skin/layer.ext.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/lib/layer/layer.js"></script>
<script type="text/javascript" src="/res/js/common/msgTools.js"></script>
<script type="text/javascript" src="/res/js/pages/front/messageAdd.js"></script>
<link rel="stylesheet" href="/res/js/lib/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="/res/js/lib/kindeditor/plugins/code/prettify.css" />
<script charset="utf-8" src="/res/js/lib/kindeditor/kindeditor-all-min.js"></script>
<script charset="utf-8" src="/res/js/lib/kindeditor/lang/zh-CN.js"></script>
<script charset="utf-8" src="/res/js/lib/kindeditor/plugins/code/prettify.js"></script>
<script type="text/javascript">
	$(document).ready(function(e) {
		$("select").uedSelect({});
	});

    $(function(){$("#usual1 ul").idTabs();});
    var editor=null;
	KindEditor.ready(function(K) {
		editor = K.create('textarea[name="content"]', {
			cssPath : '/res/js/lib/kindeditor/plugins/code/prettify.css',
			uploadJson : '/res/js/lib/kindeditor/jsp/upload_json.jsp',
			fileManagerJson : '/res/js/lib/kindeditor/jsp/file_manager_json.jsp',
			allowFileManager : true,
			afterCreate : function() {
				var self = this;
				K.ctrl(document, 13, function() {
					self.sync();
					document.forms['queryForm'].submit();
				});
				K.ctrl(self.edit.doc, 13, function() {
					self.sync();
					document.forms['queryForm'].submit();
				});
			},
		   afterChange : function(){
			   this.sync();			   
		   }
		   });
		prettyPrint();
	});
</script>
</head>
<body style="overflow-x:hidden;">
	<div class="formbody" style="width:900px;margin-left:auto;margin-right:auto;">
		<form action="/front/message/add/save" method="post" enctype="multipart/form-data" onsubmit="return checkData(this)">
			<div id="tab1" class="tabson">				
				<ul class="forminfo" style="width:710px;">
					<li><label>标题<b>*</b></label> <input name="title" value="${message.title}" valid="required|limit" max="50" min="0" type="text" class="dfinput" style="width:350px;" />
					    <span id="errMsg_title" class="errMsg">标题最多50个字符</span>
					</li>

					<li><label>消息类型<b></b></label>
						<label>系统消息<input type="radio" name="msgType" value="0"  checked/></label>					
					</li>					
 					<li><label>公告内容</label></li>
 					<li>	
						<div style="clear:both;"></div>					    
					    <textarea name="content" style="width:710px;height:450px;">${message.content}</textarea>
					    <div style="clear:both;"></div>						    				    					    
					</li>	
					<li style="text-align: center;"><input type="submit" class="btn" value="保 存" /></li>
				</ul>				
				
			</div>
		</form>
	</div>
	${actionMsg}
</body>

</html>


